﻿#ifndef CAMERATHREAD_H
#define CAMERATHREAD_H

#include <QObject>
#include <QThread>
#include "cameraworker.h"

class CameraThread : public QObject
{
    Q_OBJECT
public:
    explicit CameraThread(QObject *parent = nullptr);
    ~CameraThread();

    void Initialize();
    void start();
    void stop();
signals:
    void sigInitialize();       // 触发线程初始化
    void sigStart();            // 用于触发新线程中的耗时操作函数
    void sigStop();
public:
    QThread m_workThread;
    CameraWorker *m_worker;
};

#endif // CAMERATHREAD_H
